<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>文章列表--layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/manage/css/public.css" media="all"/>
</head>
<body class="childrenBody">
<form class="layui-form layui-row layui-col-space10" id="submitForm">

    <div class="layui-col-md8 layui-col-xs12">
        <blockquote class="layui-elem-quote title magt10">文章信息</blockquote>

        <div class="layui-row layui-col-space10">
            <div class="layui-col-md9 layui-col-xs7">

                <div class="layui-form-item magt10">
                    <label class="layui-form-label">标题</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input title" name="title" lay-verify="title"
                               placeholder="请输入文章标题">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">作者</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" th:value="${session.userinfo.nickname}" disabled>
                    </div>
                </div>
                <div class="layui-form-item" hidden="hidden">
                    <label class="layui-form-label">作者</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" name="author" th:value="${session.userinfo.username}"
                               readonly>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">类型</label>
                    <div class="layui-input-block">
                        <input type="radio" value="0" name="type" title="原创" lay-skin="primary" lay-filter="type"
                               checked/>
                        <input type="radio" value="1" name="type" title="转载" lay-skin="primary" lay-filter="type"/>
                    </div>
                </div>

                <div class="layui-form-item layui-hide originauthor">
                    <label class="layui-form-label">原作者</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" name="originauthor" placeholder="请输入原文作者">
                    </div>
                </div>

                <div class="layui-form-item layui-hide originurl">
                    <label class="layui-form-label">原地址</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" name="originurl" placeholder="请输入原文地址">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">摘要</label>
                    <div class="layui-input-block">
                        <textarea placeholder="请输入内容摘要" class="layui-textarea abstract" name="summary"
                                  lay-verify="required"></textarea>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-col-md4 layui-col-xs12">

        <blockquote class="layui-elem-quote title magt10">属性信息</blockquote>

        <div class="layui-form-item magt10">
            <label class="layui-form-label">首页分类</label>
            <div class="layui-input-block">
                <select name="navid" lay-verify="navid">
                    <option value="-1">-- 请选择 --</option>
                    <th:block th:each="dic : ${navidDic}">
                        <option th:value="${dic.id}" th:text="${dic.name}"></option>
                    </th:block>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">分类</label>
            <div class="layui-input-block">
                <select name="categoryid" lay-verify="categoryid">
                    <option value="-1">-- 请选择 --</option>
                    <th:block th:each="dic : ${categoryDic}">
                        <option th:value="${dic.id}" th:text="${dic.categoryName}"></option>
                    </th:block>
                </select>
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">专题</label>
            <div class="layui-input-block">
                <select name="topicid">
                    <option value="-1">-- 请选择 --</option>
                    <th:block th:each="dic : ${topicDic}">
                        <option th:value="${dic.id}" th:text="${dic.topicName}"></option>
                    </th:block>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">公开度</label>
            <div class="layui-input-block">
                <input type="radio" value="Y" name="showFlag" title="开放浏览" lay-skin="primary" checked/>
                <input type="radio" value="N" name="showFlag" title="私密浏览" lay-skin="primary"/>
            </div>
        </div>

        <div class="layui-form-item intop">
            <label class="layui-form-label">置顶</label>
            <div class="layui-input-block">
                <input type="checkbox" name="intop" lay-skin="switch" lay-text="是|否">
            </div>
        </div>


    </div>


    <div class="layui-col-md12 layui-col-xs12 layui-center">
        <a class="layui-btn layui-btn-sm" lay-filter="addArtical" lay-submit><i class="layui-icon">&#xe609;</i>发布</a>
        <a class="layui-btn layui-btn-primary layui-btn-sm cancel"><i class="layui-icon">&#x1006;</i>关闭</a>
    </div>
</form>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="artical.js"></script>
</body>
</html>